﻿namespace HappyTemplate
{
	class Identifier
	{
		readonly SourceLocation _location;
		readonly string _text;
		private readonly string[] _parts;

		public SourceLocation Location { get { return _location; } }
		public string Text { get { return _text; } }

		public string[] Parts
		{
			get { return _parts; }
		}

		//public Identifier(SourceLocation location, string text)
		//{
		//    _location = location;
		//    _text = text;
		//    _parts = new[] {text};
		//}

		public Identifier(SourceLocation location, string text, string[] parts)
		{
			_location = location;
			_text = text;
			_parts = parts;
		}

		public override string ToString()
		{
			return _text;
		}
	}
}
